package org.particlethink.entry;

public enum LogType implements IntEnum {
    SubOrder(0),
    Master(1);

    private final int code;

    LogType(int code) {
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    public static LogType fromCode(int code) {
        switch (code) {
            case 0:
                return SubOrder;
            case 1:
                return Master;
        }
        return null;
    }
}
